package com.xzy.service;

import com.xzy.mapper.UserEmailMapper;
import com.xzy.pojo.UserEmail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserEmailServiceImpl implements UserEmailService{
    @Autowired
    private UserEmailMapper userEmailMapper;


    @Override
    public List<UserEmail> selectUserEmailPage(int begin, int size) {
        return this.userEmailMapper.selectUserEmailPage(begin, size);
    }

    @Override
    public int deleteUserEmail(String username) {
        return this.userEmailMapper.deleteUserEmail(username);
    }

    @Override
    public int insertUserEmail(UserEmail userEmail) {
        return this.userEmailMapper.insertUserEmail(userEmail);
    }
}
